# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)

City.create(id: 1, name: 'Ontario') if City.find_by_id(1).nil?

#state
State.create(id: 1, name: 'Ontario') if State.find_by_id(1).nil?

#AddressType
AddressType.create(id: 1, name: 'Bill to address') if AddressType.find_by_id(1).nil?
AddressType.create(id: 2, name: 'Ship to address') if AddressType.find_by_id(2).nil?
AddressType.create(id: 3, name: 'Work address') if AddressType.find_by_id(3).nil?

#ContactType
ContactType.create(id: 1, name: 'Personal contact') if ContactType.find_by_id(1).nil?
ContactType.create(id: 2, name: 'Working contact') if ContactType.find_by_id(2).nil?

#License type
LicenseType.create(id: 1, name: 'License') if LicenseType.find_by_id(1).nil?
LicenseType.create(id: 2, name: 'Spead pass') if LicenseType.find_by_id(2).nil?
